package com.im.service.dto;

import java.util.List;

/** 
 * 分页查询
 * @author P_P
 * 2018年3月27日
 */
public class PageQuery<T> {

	private static final String ASC = "asc";
    private static final String DESC = "desc";
    
    private List<T> rows;
    /** 排序字段 **/
    private String sort;
    /** 正倒序**/
    private String order = ASC;
    /** 当前页数*/
    private Integer pageNumber = 1;
    /** 每页数据条数 */
    private Integer pageSize = 20;
    /** 总页数 */
    private Integer totalPages;

    private Long total;

    /**
     * 实施项目资金统计
     */
    private List<ProjStats> footer;
//    /**
//     * 资金合计
//     */
//    private Double allTotal;
//    /**
//	 * 10:部补助
//	 */
//    private Double buTotal;
//    /**
//	 *  20:省财政
//	 */
//    private Double shengTotal;
//    /**
//	 *  30:高速水运融资
//	 */
//    private Double gaoTotal;
//    /**
//	 *  40:市州配套
//	 */
//    private Double shiTotal;
//    /**
//	 *  50:企业自筹
//	 */
//    private Double qiTotal;

	public List<T> getRows() {
		return rows;
	}
	public void setRows(List<T> rows) {
		this.rows = rows;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		if (ASC.equalsIgnoreCase(order) || DESC.equalsIgnoreCase(order)) {
            this.order = order;
        } else {
            this.order = ASC;
        }
	}

	public Integer getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}

	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getTotalPages() {
		return totalPages;
	}
	public void setTotalPages(Integer totalPages) {
		this.totalPages = totalPages;
	}
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public List<ProjStats> getFooter() {
		return footer;
	}
	public void setFooter(List<ProjStats> footer) {
		this.footer = footer;
	}

}
